﻿using System;
using System.Collections.Generic;
using Topro.Entity;
using Topro.Entity.Query;
using Topro.Entity.Response;

namespace Topro.DataAccess
{
    /// <summary>
    /// 指令接口
    /// </summary>
    public interface IASRSJOB
    {
        /// <summary>
        /// 获取指令
        /// </summary>
        /// <returns></returns>
        ASRSJOBResonse GetById(int id);

        /// <summary>
        /// 更新状态
        /// </summary>
        /// <param name="id">编号</param>
        /// <param name="status">状态</param>
        /// <returns></returns>
        JResult UpdateStatus(int id, int status);

        /// <summary>
        /// 获取指令(编号、订单类型、站台、状态)
        /// </summary>
        /// <returns></returns>
        ASRSJOBResonse GetSingleASC(ASRSJOBQuery query);

        /// <summary>
        /// 出库完成
        /// </summary>
        /// <param name="id">编号</param>
        /// <returns></returns>
        JResult DeliveryCompleted(int id, int completeMode);

        /// <summary>
        /// 删除
        /// </summary>
        JResult Delete(int id);

        /// <summary>
        /// 转历史
        /// </summary>
        JResult TransferHistory();

        /// <summary>
        /// 获取指令列表
        /// </summary>
        /// <returns></returns>
        List<ASRSJOBQueryResponse> ASRSJOBPager(ASRSJOBQuery query);
    }
}
